#include "main.h"
#include "global.h"


/* Initialisation globale des données */
void init_net3D(){
	int i;
	for (i=0;i<SIZE;i++){
		myData.data[i].dec_ipv4 = 0;
		myData.data[i].src_port = 0;
		myData.data[i].dst_port = 0;
		myData.data[i].nb = 0;
	}
	myData.nb_elt = 0;
	return;
}

/*
int n3d_add(struct in_addr ip, float src_port, float dst_port){
	if (myData.nb_elt < SIZE){
		myData.data[myData.nb_elt].dec_ipv4 = (float)ip;
		myData.data[myData.nb_elt].src_port = src_port;
		myData.data[myData.nb_elt].dst_port = dst_port;
		myData.data[myData.nb_elt].nb++;
		myData.nb_elt++;
	}
	return 0;
}
*/
